package com.ec.vs.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 预约状态
 */
@ApiModel(description = "预约状态")
public enum VsStatus {
    PENDING("待确定", 0), // 确定
    COMPLETED("已完成", 1), // 已完成
    CANCELED("取消", 2), // 取消
    EXPIRED("过期", 3), // 过期
    CONFIRMED("待完成", 4); // 已预约待完成

    private String name;
    @JsonValue
    private Integer ordinal;

    VsStatus(String name, int ordinal) {
        this.name = name;
        this.ordinal = ordinal;
    }

    @ApiModelProperty(value = "状态名称")
    public String getName() {
        return name;
    }

    @ApiModelProperty(value = "状态编码")
    public int getOrdinal() {
        return ordinal;
    }
}
